package ${baseInfo.packageName};

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
<#list tableClass.importList as fieldType>${"\n"}import ${fieldType};</#list>
import com.fa4j.common.data.model.Base;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * ${tableClass.remark}
 *
 * @since ${.now?string('yyyy-MM-dd HH:mm:ss')}
 */
@Data
@TableName(value = "${tableClass.tableName}", autoResultMap = true)
@Schema(description = "${tableClass.remark!}")
public class ${baseInfo.fileName} extends Base {

<#list tableClass.pkFields as field>
    @Schema(description = "${field.remark!}")
    @TableId(value = "${field.fieldName}", type = IdType.AUTO)
    private ${field.shortTypeName} ${field.fieldName};
</#list>
<#list tableClass.baseFields as field>
    <#if field.fieldName!='deleted'&&field.fieldName!='createTime'&&field.fieldName!='updateTime'>

    @Schema(description = "${field.remark!}")
    private ${field.shortTypeName} ${field.fieldName};
    </#if>
</#list>


}
